using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.Configuration;

using IDAL;
using Entities;

namespace Bll
{
    public class FactoryBll
    {
        public IList<FactoryInfo> GetAll()
        {
            IFactoryDAO factory = (IFactoryDAO)AssemblyLoader.Load("FactoryDAO");
            return factory.GetAll();
        }

        public bool Insert(FactoryInfo fac)
        {
            IFactoryDAO factory = (IFactoryDAO)AssemblyLoader.Load("FactoryDAO");
            return factory.Insert(fac);
        }

        public bool Update(FactoryInfo fac)
        {
            IFactoryDAO factory = (IFactoryDAO)AssemblyLoader.Load("FactoryDAO");
            return factory.Update(fac);
        }
    }
}
